class CreateRooms < ActiveRecord::Migration
  def self.up
    create_table :rooms do |t|
      t.column :name,:string
      t.column :room_category,:string
      t.column :tel,:string
      t.column :event_id,:integer
      t.timestamps
    end
    add_column :conventioners,:room_id,:integer
  end

  def self.down
    drop_table :rooms
    remove_column :conventioners,:room_id
  end
end
